//@author A0097091Y
//This class stores details of an object that is saved in undo/redo stacks
package crossoff.model;

import crossoff.db.HistoryType;

public class HistoryObject {
	
	private Task task;
	private HistoryType type;
	private Task oldTask;
	
	public HistoryObject(Task task, HistoryType type) {
	
		this.task = task;
		this.type = type;
		oldTask = null;
	}

	public HistoryObject(Task task, HistoryType type, Task oldTask) {
	
		this.task = task;
		this.type = type;
		this.oldTask = oldTask;
	}

	public Task getTask() {
		return task;
	}

	public void setTask(Task task) {
		this.task = task;
	}

	public HistoryType getType() {
		return type;
	}

	public void setType(HistoryType type) {
		this.type = type;
	}

	public Task getOldTask() {
		return oldTask;
	}

	public void setOldTask(Task oldTask) {
		this.oldTask = oldTask;
	}
	

	
}
